#ifndef __MOTOR_LIB_H
#define __MOTOR_LIB_H

#ifdef __cplusplus
 extern "C" {
#endif

#include "mt006.h"



#define Motor_MCOA0_PWM     ((uint32_t)0x00000001)
#define Motor_MCOB0_PWM     ((uint32_t)0x00000002)
#define Motor_MCOA1_PWM     ((uint32_t)0x00000004)
#define Motor_MCOB1_PWM     ((uint32_t)0x00000008)
#define Motor_MCOA2_PWM     ((uint32_t)0x00000010)
#define Motor_MCOB2_PWM     ((uint32_t)0x00000020)
#define Motor_MCOA0_ON      ((uint32_t)0x00000100)
#define Motor_MCOB0_ON      ((uint32_t)0x00000200)
#define Motor_MCOA1_ON      ((uint32_t)0x00000400)
#define Motor_MCOB1_ON      ((uint32_t)0x00000800)
#define Motor_MCOA2_ON      ((uint32_t)0x00001000)
#define Motor_MCOB2_ON      ((uint32_t)0x00002000)

#define Motor_MCOA0_DELAY_PWM       ((uint32_t)0x00100000)
#define Motor_MCOB0_DELAY_PWM       ((uint32_t)0x00200000)
#define Motor_MCOA1_DELAY_PWM       ((uint32_t)0x00400000)
#define Motor_MCOB1_DELAY_PWM       ((uint32_t)0x00800000)
#define Motor_MCOA2_DELAY_PWM       ((uint32_t)0x01000000)
#define Motor_MCOB2_DELAY_PWM       ((uint32_t)0x02000000)
#define Motor_MCOA0_DELAY_ON        ((uint32_t)0x04000000)
#define Motor_MCOB0_DELAY_ON        ((uint32_t)0x08000000)
#define Motor_MCOA1_DELAY_ON        ((uint32_t)0x10000000)
#define Motor_MCOB1_DELAY_ON        ((uint32_t)0x20000000)
#define Motor_MCOA2_DELAY_ON        ((uint32_t)0x40000000)
#define Motor_MCOB2_DELAY_ON        ((uint32_t)0x80000000)




#ifdef __cplusplus
}
#endif

#endif /* __MOTOR_LIB_H */
